package com.xyz.study.design_mode.h_abstract_factory.mode;

/**
 * 角色：ConcreteProduct 实例产品
 * @author XYZ
 * @version 1.0.0
 * @since 2021-01-26 21:25
 */
public class ConcreteProductB implements ProductB {
    @Override
    public String name() {
        return "B";
    }

    @Override
    public void use() {
        System.out.println(name() + " use!!!");
    }
}
